package com.schedule.dao;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.schedule.mapper.BusMapper;
import com.schedule.model.Bus;

@Repository
public class BusDao implements BusMapper{
	@Autowired
	BusMapper busMapper;

	@Override
	public List<Bus> findAll() {
		return busMapper.findAll();
	}

	@Override
	public void addBus(Bus bus) {
		busMapper.addBus(bus);
	}

	@Override
	public void updateBus(Bus bus) {
		busMapper.updateBus(bus);
	}

	@Override
	public void deleteBus(String busId) {
		busMapper.deleteBus(busId);
	}

	@Override
	public Bus findById(String busId) {
		return busMapper.findById(busId);
	}
}
